<?php

class captcha_form extends CFormModel {

    public $verifyCode;

    /**
     * Declares the validation rules.
     */
    public function rules() {
        return array(
            // verifyCode needs to be entered correctly
            array('verifyCode', 'captcha', 'allowEmpty' => !CCaptcha::checkRequirements()),
        );
    }

}

?>
